"use strict";
const Controller = require("egg").Controller;
class UserOrder extends Controller {
    //加入剧本
    async join() {
        const { ctx, service } = this;
        const result = await service.userorder.join({
            orderId: ctx.params.id,
            userId: ctx.userId,
            sex: ctx.request.body.sex
        })
        ctx.body = result
    }
    async quit(){
        const { ctx, service } = this;
        const result = await service.userorder.quit({
            orderId: ctx.params.id,
            userId: ctx.userId,
            sex: ctx.request.body.sex
        })
        ctx.body = result
    }
}

module.exports = UserOrder;